
def ort():
    for i in range(11, 100):
        for j in range(10, i):
            i0, i1 = map(int, str(i))
            j0, j1 = map(int, str(j))
            if i0 == i1 or j0 == j1 or j1 == 0 or i1 == 0:
                continue
            if i0 == j1:
                if i * j0 == j * i1:
                    yield '%d / %d -> %d / %d' % (j, i, j0, i1)
            if i1 == j0:
                if i * j1 == j * i0:
                    yield '%d / %d -> %d / %d' % (j, i, j1, i0)

for o in ort():
    print o